package com.dream.technology.db.entity;

import com.dream.technology.db.entity.vo.RiskItemVo;
import com.dream.technology.mybatisUtils.CreateTime;
import com.dream.technology.mybatisUtils.UpdateTime;

import java.util.Date;

public class RcRuleItem {
    private Long id;

    private Long ruleId;

    private Integer ruleAction;

	@CreateTime
    private Date createDate;

	@UpdateTime
    private Date updateDate;

    private String itemAlias;

    private String fieldCode;

    private String fieldName;

    private Integer fieldDataType;

    private String symbolCode;

    private String symbolName;

    private String fieldValue;

    private Boolean status;

    private Boolean enabled;

    private String fieldType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRuleId() {
        return ruleId;
    }

    public void setRuleId(Long ruleId) {
        this.ruleId = ruleId;
    }

    public Integer getRuleAction() {
        return ruleAction;
    }

    public void setRuleAction(Integer ruleAction) {
        this.ruleAction = ruleAction;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getItemAlias() {
        return itemAlias;
    }

    public void setItemAlias(String itemAlias) {
        this.itemAlias = itemAlias == null ? null : itemAlias.trim();
    }

    public String getFieldCode() {
        return fieldCode;
    }

    public void setFieldCode(String fieldCode) {
        this.fieldCode = fieldCode == null ? null : fieldCode.trim();
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName == null ? null : fieldName.trim();
    }

    public Integer getFieldDataType() {
        return fieldDataType;
    }

    public void setFieldDataType(Integer fieldDataType) {
        this.fieldDataType = fieldDataType;
    }

    public String getSymbolCode() {
        return symbolCode;
    }

    public void setSymbolCode(String symbolCode) {
        this.symbolCode = symbolCode == null ? null : symbolCode.trim();
    }

    public String getSymbolName() {
        return symbolName;
    }

    public void setSymbolName(String symbolName) {
        this.symbolName = symbolName == null ? null : symbolName.trim();
    }

    public String getFieldValue() {
        return fieldValue;
    }

    public void setFieldValue(String fieldValue) {
        this.fieldValue = fieldValue == null ? null : fieldValue.trim();
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType == null ? null : fieldType.trim();
    }

    public RiskItemVo getVoItem(){
        RiskItemVo riskItemVo = new RiskItemVo();
        riskItemVo.setFieldName(this.fieldName);
        riskItemVo.setFieldValue(this.fieldValue);
        riskItemVo.setOperationalSymbolCode(this.symbolCode);
        riskItemVo.setFieldCode(this.fieldCode);
        return riskItemVo;
    }
}
